/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PoJo;

import java.util.Date;

/**
 *
 * @author Kute_Ants
 */
public class KhachHangPOJO 
{
    private String MaKhachHang;
    private String Email;
    private String HoTen;
    private String MatKhau;
    private String MaKhuVuc;
    private Date ThoiGianDangKi;
    private String CreditCard;
    private String DienThoai;
    
    // phuong thuc khoi tao

    public KhachHangPOJO(String MaKhachHang, String Email, String HoTen, String MatKhau, String MaKhuVuc, Date ThoiGianDangKi, String CreditCard, String DienThoai) 
    {
        this.MaKhachHang = MaKhachHang;
        this.Email = Email;
        this.HoTen = HoTen;
        this.MatKhau = MatKhau;
        this.MaKhuVuc = MaKhuVuc;
        this.ThoiGianDangKi = ThoiGianDangKi;
        this.CreditCard = CreditCard;
        this.DienThoai = DienThoai;
    }
    
    public KhachHangPOJO() 
    {
        this.MaKhachHang = null;
        this.Email = null;
        this.HoTen = null;
        this.MatKhau = null;
        this.MaKhuVuc = null;
        this.ThoiGianDangKi = new Date();
        this.CreditCard = null;
        this.DienThoai = null;
    }
    
    public KhachHangPOJO(KhachHangPOJO KH) 
    {
        this.MaKhachHang = KH.MaKhachHang;
        this.Email = KH.Email;
        this.HoTen = KH.HoTen;
        this.MatKhau = KH.MatKhau;
        this.MaKhuVuc = KH.MaKhuVuc;
        this.ThoiGianDangKi = KH.ThoiGianDangKi;
        this.CreditCard = KH.CreditCard;
        this.DienThoai = KH.DienThoai;
    }
    
    //phuong thuc get set

    public String getCreditCard() {
        return CreditCard;
    }

    public void setCreditCard(String CreditCard) {
        this.CreditCard = CreditCard;
    }

    public String getDienThoai() {
        return DienThoai;
    }

    public void setDienThoai(String DienThoai) {
        this.DienThoai = DienThoai;
    }

    public String getEmail() {
        return Email;
    }

    public void setEmail(String Email) {
        this.Email = Email;
    }

    public String getHoTen() {
        return HoTen;
    }

    public void setHoTen(String HoTen) {
        this.HoTen = HoTen;
    }

    public String getMaKhachHang() {
        return MaKhachHang;
    }

    public void setMaKhachHang(String MaKhachHang) {
        this.MaKhachHang = MaKhachHang;
    }

    public String getMaKhuVuc() {
        return MaKhuVuc;
    }

    public void setMaKhuVuc(String MaKhuVuc) {
        this.MaKhuVuc = MaKhuVuc;
    }

    public String getMatKhau() {
        return MatKhau;
    }

    public void setMatKhau(String MatKhau) {
        this.MatKhau = MatKhau;
    }

    public Date getThoiGianDangKi() {
        return ThoiGianDangKi;
    }

    public void setThoiGianDangKi(Date ThoiGianDangKi) {
        this.ThoiGianDangKi = ThoiGianDangKi;
    }
    
    // phuong thuc string.toString tra ve ho ten Khach Hang 

    @Override
    public String toString() {
        return this.HoTen;
    }
    
    
    
    
}
